<template>
  <!-- 我的收益 -->
  <div class="income-container">
    <div class="income-info elevation-2">
      <div class="status">
        <div class="title">Order complete</div>
        <div class="numbers">$: 0</div>
      </div>
      <router-link tag="div" to="/Sub/Withdraw" class="view">
        <span>View</span>
        <i class="fa fa-angle-right"></i>
      </router-link>
    </div>
    <div class="income-info elevation-2">
      <div class="status">
        <div class="title">In transit</div>
        <div class="numbers">$: 0</div>
      </div>
      <router-link tag="div" to="/Sub/Trading" class="view">
        <span>View</span>
        <i class="fa fa-angle-right"></i>
      </router-link>
    </div>
    <div class="income-info elevation-2">
      <div class="status">
        <div class="title">Withdrawals</div>
        <div class="numbers">$: 0</div>
      </div>
      <router-link tag="div" to="/Sub/WithdrawList" class="view">
        <span>View</span>
        <i class="fa fa-angle-right"></i>
      </router-link>
    </div>

    <div class="income-info elevation-2">
      <div class="status">
        <div class="title">Invite member list</div>
        <!-- <div class="numbers">$: 23434</div> -->
      </div>
      <router-link tag="div" to="/Sub/Members" class="view">
        <span>View</span>
        <i class="fa fa-angle-right"></i>
      </router-link>
    </div>

    <div class="income-info elevation-2">
      <div class="status">
        <div class="title">Bank/Wallet Account</div>
        <!-- <div class="numbers">$: 23434</div> -->
      </div>
      <router-link tag="div" to="/Sub/Cards" class="view">
        <span>Set up</span>
        <i class="fa fa-angle-right"></i>
      </router-link>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
declare const $Vue: Vue;

@Component
export default class Income extends Vue {
  protected mounted() {
    $Vue.$emit('title', {
      message: 'My Revenue'
    });
  }
}
</script>

<style lang="less" scoped>
@import url(../../../styles/variables.less);
.income-container {
  width: 100%;
  height: 100%;
  padding: 0.4rem 1rem;
  box-sizing: border-box;
  .income-info {
    height: 5rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 0.6rem;
    .status {
      .title {
        font-size: 1.2rem;
        color: @title-color;
      }
      .numbers {
        text-align: left;
        margin-top: 0.3rem;
      }
    }
    .view {
      display: flex;
      justify-content: space-between;
      align-items: center;
      i {
        margin-left: 0.7rem;
      }
    }
  }
}
</style>